<template>
  <button @click="getData">发起请求</button>
</template>

<script setup>
import axios from 'axios'

const getData = async () => {
  const { data } = await axios.get('/api/moment/1')
  console.log(data)
}
</script>

<style lang="scss" scoped></style>
